package com.herysoft.scm.biz.sys;

import java.util.ArrayList;

import com.herysoft.scm.dao.sys.GroupDao;
import com.herysoft.scm.model.sys.Group;

public class GroupBizImpl implements GroupBiz {
	public GroupDao groupDao;
	public void setGroupDao(GroupDao groupDao){
		this.groupDao = groupDao;
	}
	public void addGroup(Group group) {
		this.groupDao.insertGroup(group);
	}
	public ArrayList<Group> getGroups(Group group) {
		return groupDao.getGroupsByGroup(group);
	}
	public void updateGroup(Group group) {
		groupDao.updateGroup(group);
	}
	public Group getGroupById(Integer id) {
		return groupDao.getGroupById(id);
	}
	public void updateGroupNoNull(Group group) {
		groupDao.updateGroupNoNull(group);
	}
	public void deleteGroup(Integer id) {
		groupDao.deleteGroup(id);
	}
}
